package com.sky.service.impl;

import com.sky.mapper.VisaTemplateMapper;
import com.sky.service.VisaTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VisaTemplateServiceImpl implements VisaTemplateService {

    @Autowired
    private VisaTemplateMapper visaTemplateMapper;

    @Override
    public List<Long> getTemplateIdsByProductId(Long productId) {
        return visaTemplateMapper.findTemplateIdsByProductId(productId);
    }

    @Override
    public List<String> getTemplateUserTypesByProductId(Long productId) {
        return visaTemplateMapper.findTemplateUserTypesByProductId(productId);
    }
}